package cn.controller;

import cn.service.impl.AttributeListServiceImpl;
import cn.service.impl.AttributeValueServiceImpl;
import entity.Result;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@CrossOrigin
public class AttributeValueController {
    @Resource
    AttributeValueServiceImpl attributeValueService;

    @RequestMapping("/queryAttributeValueNum")
    public Result queryAttributeValueNum(Integer attribute_id) {
        return attributeValueService.queryAttributeValueNum(attribute_id);
    }

    @RequestMapping("/queryByAttribute_id")
    public Result queryByAttribute_id(Integer attribute_id) {
        return attributeValueService.queryByAttribute_id(attribute_id);
    }
}
